package com.chenyongjing.design.pattern.builder.withoutdirector;


public class Test {
    public static void main(String[] args){
        Worker woker = new Worker();
        // 在原来及基础上有默认组合，可以自由组合
        Product product =woker.buildFirst("可乐")
                .buildSecond("鸡翅")
                .buildThree("汉堡")
                .buildThree("鸡腿")
                .buildFour("鸡排").getProduct();

        System.out.println(product.toString());
    }
}
